using UnityEngine;
using UnityEditor;

namespace GPUParticles
{
    public class ColorModule : Module
    {
        SerializedProperty color;
        SerializedProperty colorOverLife;
        SerializedProperty colorSteps;

        Object[] targets;

        public ColorModule(SerializedObject serializedObject, Object[] targets)
        {
            this.targets = targets;
            color = serializedObject.FindProperty("color");
            colorOverLife = serializedObject.FindProperty("colorOverLife");
            colorSteps = serializedObject.FindProperty("colorSteps");
        }

        public override void Draw()
        {
            DrawGUI("Color", DrawContent);
        }

        private void DrawContent()
        {
            
            EditorGUILayout.PropertyField(color, new GUIContent("Color"));
           
        }
    }
}